<!DOCTYPE html>
<html >
{include file="head.html"}
<body>

<div class="fullscreen">
  <div class="scroll_content">
  <div class="topfixed">
    	<div class="t_left"><a href="/index.php?m=user"><i class="back"></i></a></div>
      <div class="t_main">在线支付</div>
       
    </div>
    <div class="paddingheight"></div> 
    <form method="post" action="/index.php?m=recharge&a=recharge">
 
     <div class="comblock">
  <table class="cart_change_table">
    <tr>
      <th>支付方式：</th>
      <td><div class="paylist" id="paylist">
    	{foreach item=c key=k name=p from=$pay_type_list}
        {if $smarty.foreach.p.first}
        <input type="hidden" name="pay_type" id="pay_type" value="{$k}">
         <div class="item active" v="{$k}">{$c}</div>
        {else}
        <div class="item" v="{$k}">{$c}</div> 
        {/if}
        
        {/foreach}
        </div></td>
    </tr>
  
    <tr>
<td height="40">充值金额：</td>
<td><div class="input-row"><input type="text" class="input-text" name="order_price" value="" ></div></td>
</tr>
  
    <tr>
      <th colspan="2"></th>
    </tr>
  </table>
</div>
<button type="submit"  class="  cart_change_btn ">支付</button>
 
 </form>
 
 
</div>
</div>
 

{include file="footer.html"}
<script>
$(function(){
	$(document).on("click","#paylist .item",function(){
		$("#paylist .item").removeClass("active");
		$("#pay_type").val($(this).attr("v"));
		$(this).addClass("active");
	});
	 
});
</script>
</body>
</html>